﻿using Max.PH4.Shoppgin.Admin.DataAccess;
using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;

namespace Max.PH4.Shoppgin.Admin.IRespository
{
    /// <summary>
    /// 工作单元，主要是用来解决事务
    /// </summary>
    public interface IUnitOfWork
    {
        MyDbContext GetMyDbContext();
        int SaveChanges();
        Task<int> SaveChangesAsync();
    }
}
